package com.ruoyi.maode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.maode.domain.dto.QueryPartBatchDTO;
import com.ruoyi.maode.domain.entity.PartBatch;
import com.ruoyi.maode.domain.vo.PartBatchDetailVO;
import com.ruoyi.maode.domain.vo.PartBatchVO;
import org.apache.ibatis.annotations.Param;

/**
 * 零件批次Mapper类
 * @author zhangwenqiang
 */
public interface PartBatchMapper extends BaseMapper<PartBatch> {

    /**
     * 零件批次列表分页查询Mapper
     * @param page
     * @param dto
     * @return
     */
    Page<PartBatchVO> selectBatchList(@Param("page") Page page, @Param("dto") QueryPartBatchDTO dto);

    /**
     * 获取批次详情数据Mapper
     * @param id
     * @return
     */
    PartBatchDetailVO getDetail(@Param("id") Long id);
}
